package cn.edu.zut.hhr.entity;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@NoArgsConstructor
//开启链式编程
@Accessors(chain = true)
public class Dept implements Serializable {
    private static final long serializableID = 1L;
    private Long id;
    private String dname;
    //同一个信息可能存在不同数据库,用这个进行区分
    private String dbSource;

    public Dept(String dname, String dbSource) {
        this.dname = dname;
        this.dbSource = dbSource;
    }
}
